import { createAsyncThunk,createSlice } from "@reduxjs/toolkit";
import * as services from 'services/Consultationinformation/Endtheconsultation'
import { addBuilder } from "store/dict";

export const doEndtheconsultation = createAsyncThunk<any,any>(
    "Endtheconsultation/doEndtheconsultation",
    async(data)=>{
        console.log('00000',data);
        
        const res = await services.Endtheconsultation(data)
        return res
    }
)

const initialState = {
    // Endtheconsultation:{}
}

const Endtheconsultation = createSlice({
    name:"Endtheconsultation",
    initialState,
    reducers:{},
    extraReducers:(builder) =>{
        addBuilder(builder,doEndtheconsultation,(state,action)=>{
            console.log(action);
            
        })
    }
})

export default Endtheconsultation.reducer

